package com.prs.crm.service.sys.impl;

import java.util.Collection;
import java.util.List;

import com.prs.crm.dao.sys.SysDepartmentDao;
import com.prs.crm.domain.sys.SysDepartment;
import com.prs.crm.service.impl.BaseServiceImpl;
import com.prs.crm.service.sys.SysDepartmentService;

public class SysDepartmentServiceImpl extends BaseServiceImpl<SysDepartment, SysDepartmentDao> implements SysDepartmentService{

	@Override
	public Collection<SysDepartment> getAllRootSysDepartment() {
		return this.getDao().getAllRootSysDepartment();
	}

	@Override
	public List<SysDepartment> getAllSysDepartment() {
		return this.getDao().getAllSysDepartment();
	}

	@Override
	public Collection<SysDepartment> getRootSysDepartment() {
		return this.getDao().getRootSysDepartment();
	}

	@Override
	public SysDepartment getSysDepartment(String code) {
		return this.getDao().getSysDepartment(code);
	}

}
